<?php

class PlanetaModel {
	
	private $id;
	
	private $lider;
	
	private $nome;
	
	private $idJuncao;
	
	private $setor;
	
	private $quadrante;
	
	private $slot;
	
	private $idUsuario;
	
	private $idRaca;
	
	private $idRound;
	
	private $score;
	
	public function __construct() { }
	
	public function getId() {
		return $this->id;
	}
	
	public function setId($id) {
		$this->id = $id;
	}
	
	public function getLider() {
		return $this->lider;
	}
	
	public function setLider($lider) {
		$this->lider = $lider;
	}
	
	public function getNome() {
		return $this->nome;
	}
	
	public function setNome($nome) {
		$this->nome = $nome;
	}
	
	public function getIdJuncao() {
		return $this->idJuncao;
	}
	
	public function setIdJuncao($idJuncao) {
		$this->idJuncao = $idJuncao;
	}
	
	public function getSetor() {
		return $this->setor;
	}
	
	public function setSetor($setor) {
		$this->setor = $setor;
	}
	
	public function getQuadrante() {
		return $this->quadrante;
	}
	
	public function setQuadrante($quadrante) {
		$this->quadrante = $quadrante;
	}
	
	public function getSlot() {
		return $this->slot;
	}
	
	public function setSlot($slot) {
		$this->slot = $slot;
	}
	
	public function getIdUsuario() {
		return $this->idUsuario;
	}
	
	public function setIdUsuario($idUsuario) {
		$this->idUsuario = $idUsuario;
	}
	
	public function getIdRaca() {
		return $this->idRaca;
	}
	
	public function setIdRaca($idRaca) {
		$this->idRaca = $idRaca;
	}
	
	public function getScore() {
		return $this->score;
	}
	
	public function setScore($temp) {
		$this->score = $temp;
	}
	
	public function getIdRound() {
		return $this->idRound;
	}
	
	public function setIdRound($temp) {
		$this->idRound = $temp;
	}
	
	public function toJSONObject() { 
		$temp = array(
			"id" => $this->id,
			"lider" => $this->lider,
			"nome" => $this->nome,
			"idJuncao" => $this->idJuncao,
			"setor" => $this->setor,
			"quadrante" => $this->quadrante,
			"slot" => $this->slot,
			"idUsuario" => $this->idUsuario,
			"idRaca" => $this->idRaca,
			"idRound" => $this->idRound,
			"score" => $this->score		
		);
		return $temp;
	}	
}
?>